package lec04.am.v4;

public class Test {

	public static void main(String[] args) {
		Shape shapes[] = new Shape[3];
		shapes[0] = new Circle(5.0);
		shapes[1] = new Triangle(3.0, 4.0, 5.0);
		shapes[2] = new Rectangle(5.0, 10.0);
		for (Shape shape : shapes)
			System.out.println(shape.getArea());

	}
}
